package net.pzc.filechooser;

import java.awt.Color;
import java.awt.Graphics;

import javax.swing.JToggleButton;

public class FFCToggleButton extends JToggleButton {
	private static final long serialVersionUID = 1L;

	public void paintComponent(Graphics g) {
		super.paintComponent(g);
		if (this.isSelected()) {
			int w = getWidth() - 10;
			int h = getHeight() - 10;
			g.setColor(Color.blue); // selected color
			g.drawRect(5, 5, w, h);
			g.setColor(Color.darkGray); // selected foreground color
//			g.drawString(s, (w - g.getFontMetrics().stringWidth(s)) / 2 + 1, (h + g.getFontMetrics().getAscent()) / 2 - 1);
		} else {
		}
	}
}
